User input and display output functions

getInput(int promptOffset, int promptSegment, int defaultOffset, int defaultSegment, int oneChar) promptOffset is the offset part of the address of the string that will prompt the user promptSegment is the segment part of the address of the string that will prompt the user. If this is 0, the procedure converts it into the DS segment. defaultOffset is the offset part of the address of the string that will be the default response

defaultSegment is the segment part of the address of the string that will be the default response. If this is 0, the procedure converts it into the DS segment. oneChar is 1 if a single character response is required. Otherwise the user must terminate the response with the Enter key.

displayMessage(int messageType, int msgOffset, int msgSegment) messageType indicates how the message is displayed (see software interrupt function 10) msgOffset is the offset part of the address of the string to display. msgSegment is the segment part of the address of the string to display. If this is 0, the procedure converts it into the DS segment.

(int) value = showMenu(unsigned int offset, unsigned in segment, int row, int col) This function displays a menu and allows the user to select an item from the menu. offset,segment is the far address of the menu block (see overlay.h for the format of a menu block). row,col is the screen position of the upper left corner of the menu. value is the value associated with the menu item chosen by the user.